package ruifeng.zcj.pay;

import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

public class WelcomeActivity extends Activity {
	private View startView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		//startView = View.inflate(this, R.layout.welcom, null);
		//setContentView(startView);
		Timer time = new Timer();
		time.schedule(new TimerTask() {
			@Override
			public void run() {
				goLoginActivity();
			}

			@Override
			public boolean cancel() {
				return super.cancel();
			}
		}, 3000);
	}

	// 进入登陆界面
	public void goLoginActivity() {
		Intent intent = new Intent(WelcomeActivity.this, PayDemoActivity.class);
		startActivity(intent);
		finish();
	}

}
